package cn.gene.timeyan.coo.webapi.mapper;

import cn.gene.timeyan.pojo.coo.dto.ApplyByCooperationDTO;
import cn.gene.timeyan.pojo.coo.dto.CooperationDetailDTO;
import cn.gene.timeyan.pojo.coo.model.Cooperation;
import cn.gene.timeyan.pojo.coo.vo.CooperationVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 浜掑姪璐翠俊鎭 Mapper 接口
 * </p>
 *
 * @author LWG
 * @since 2022-07-25
 */
@Repository
public interface CooperationMapper  {
    // 全查所有求助信息
    List<Cooperation> findAllList();
    //查询失物招领模块所有信息
    List<Cooperation> findLostList();

    int insert(Cooperation cooperation);

    ApplyByCooperationDTO selectEndtimeAndApplyLimitByHelpId(Long helpId);

    int updateApplyBelimit(Long helpId);

    Cooperation getHelpByHelpId(Long helpId);

    List<CooperationVO> getHelpList(@Param("school") String school, @Param("modelId") Long modelId);

    List<CooperationVO> getHelpListByModelId(@Param("modelId") Long modelId);

    List<CooperationVO> getHelpListByUserId(Long userId);

    CooperationVO getHelpNoFinishByHelpId(Long helpId);

    CooperationVO getDetail(CooperationDetailDTO cooperationDetailDTO);
}
